<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>线上社区超市后台管理系统</title>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body> <!--头部-->
<header class="publicHeader">
    <h1>线上社区超市后台管理系统</h1>
    <div class="publicHeaderR">
        <p><span>你好！</span>
            <span style="color: #fff21b"> ${sessionScope.userSession.userName}</span> , 欢迎你！</p>
        <a href="login.html">退出</a>
    </div>
</header>
<!--时间-->
<section class="publicTime">
    <span id="time">2015年1月1日 11:11 星期一</span>
</section>
<!--主体内容-->
<section class="publicMian ">
    <div class="left">
        <h2 class="leftH2"><span class="span1"></span>功能列表 <span></span></h2>
        <nav>
            <ul class="list">
                <li ><a href="goodsEdit.jsp">商品管理</a></li>
                <li ><a href="billListServlet">订单管理</a></li>
                <li><a href="userServlet">用户管理</a></li>
                <li><a href="password.jsp">密码修改</a></li>
                <li><a href="loginOut">退出系统</a></li>
            </ul>
        </nav>
    </div>
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>商品管理页面 >> 商品修改页面</span>
        </div>
        <div class="providerAdd">
            <form action="updateGoodsServlet" method="post">
                <!--div的class 为error是验证错误，ok是验证成功-->
                <div>
                <%--传递商品编号，但是不展示   --%>
                    <input type="hidden" name="goodsCode" id="goodsCode" placeholder="${requestScope.goodsItem.id}" value="${requestScope.goodsItem.id}"/>
                </div>
                <div>
                    <label >商品名称：</label>
                    <input type="text" name="name" id="name" placeholder="${requestScope.goodsItem.name}" value="${requestScope.goodsItem.name}" />
                </div>
                <div>
                    <label for="price">商品价格：</label>
                    <input type="text" name="price" id="price" placeholder="${requestScope.goodsItem.price}" value="${requestScope.goodsItem.price}"/>
                </div>
                <div>
                    <label for="sales">商品已售：</label>
                    <input type="text" name="sales" id="sales" placeholder="${requestScope.goodsItem.sales}" value="${requestScope.goodsItem.sales}"/>
                </div>
                <div>
                    <label for="stock">商品库存：</label>
                    <input type="text" name="stock" id="stock" placeholder="${requestScope.goodsItem.stock}" value="${requestScope.goodsItem.stock}" />
                </div>
                <div>
                    <label >商品图片：</label>

                    <input type="text" name="imgPath" id="imgPath" placeholder="${requestScope.goodsItem.imgPath}" value="${requestScope.goodsItem.imgPath}"/>
                </div>
                <div class="providerAddBtn">
                    <input type="submit" value="保存"/>
                    <input type="button" value="返回" onclick="history.back(-1)"/>
                </div>
            </form>
        </div>
    </div>
</section>
<script src="js/time.js"></script>
</body>
</html>